package com.ibangnuo.framework.exception;

import com.ibangnuo.framework.model.response.ResultCode;

/**
 * @Author: wwy
 * @Date: 2019-12-18 16:19
 */
public class ExceptionCast {
    /**
     * 此静态方法为了方便抛出自定义异常，统一异常处理，主要抛出方法
     * @param resultCode
     */
    public static void cast(ResultCode resultCode){
        throw new CustomException(resultCode);
    }
}
